<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<div class="tableoptions">
                	<button onclick="window.location.href='<?php echo base_url() ?>admin/psb_tambah'" class="deletebutton radius3" title="Tambah Santri Baru">Daftar Baru</button> &nbsp; <button onclick="window.location.href='<?php echo base_url() ?>admin/konfirmasi_bayar'" class="deletebutton radius3" title="Tambah Santri Baru">Halaman Konfirmasi Bayar(via Transfer)</button>
<br><b>Tahun PSB :</b><br><form>
                  <select name="URL" onchange="window.location.href=this.form.URL.options[this.form.URL.selectedIndex].value" class="smallsel">
                    <?php foreach ($tahun as $hm): ?>
                    <option value="<?php echo base_url();?>admin/psb_ta/<?php echo $hm->id_ta;?>"><?php echo $hm->id_ta;?></option>
                    <?php endforeach; ?> 
                  </select></form>
                </div><!--tableoptions-->	
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="stdtable">
                    <colgroup>
                        <col class="con0" />
                        <col class="con1" />
                        <col class="con0" />
                        <col class="con1" />
                        <col class="con0" />
                        <col class="con1" />
                        <col class="con0" />
                        <col class="con1" />
                    </colgroup>
                    <thead>
  <tr>
    <td width="7%" align="left">ID PSB</td>
    <td width="14%" align="left">Nama Lengkap</td>
    <td width="8%" align="left">Tgl Lahir</td>
    <td width="17%">Sekolah Asal</td>
    <td width="17%">Daftar Di</td>
    <td width="9%">Dokumen</td>
    <td width="9%">Pembayaran</td>
    <td width="12%">Tgl Daftar</td>
    <td width="8%" class="center">Aksi</td>
  </tr>
  					</thead>
<?php $no=1; foreach ($homes as $hm): ?>
  <tr>
   	<td width="7%" align="left"><?php echo $hm->id_santri_baru;?></td>
    <td width="14%" align="left"><?php echo $hm->nama_lengkap;?></td>
    <td width="8%" align="left"><?php echo $hm->tanggal_lahir;?></td>
    <td width="17%"><?php echo $hm->sekolah_asal;?></td>
    <td width="17%">
<?php $users=$hm->id_sekolah;
  $s2=$this->admin_model->getNamaSekolahById($users);
  echo $s2['nama'];
?>
    </td>
    <td width="9%" align="left"><?php echo $hm->dokumen_lengkap;?></td>
    <td width="9%" align="left"><?php echo $hm->pembayaran;?></td>
    <td width="12%"><?php echo $hm->tgl_reg;?></td>
    <td width="8%" align="center"><a href="javascript:window.open('<?php echo base_url() ?>admin/detail_santri/<?php echo $hm->id_santri_baru;?>', 'Lihat Pengumuman', 'width=1200,height=600');" class="edit" title="Lihat Pengumuman"><i class="fa fa-eye fa-lg"></i></a> &nbsp;<a href="<?php echo base_url() ?>admin/psb_edit/<?php echo $hm->id_santri_baru;?>" class="edit"><i class="fa fa-pencil fa-lg"></i></a> &nbsp;<a href="<?php echo base_url() ?>admin/cproc_psb_hapus/<?php echo $hm->id_santri_baru;?>" class="delete" onClick="return confirm('Apakah Anda Ingin menghapus data ini ?')"><i class="fa fa-minus-square fa-lg"></i></a></td>
  </tr>
<?php endforeach; ?> 
</table><br>
<center><?php echo $halaman;?></center>


